package com.itheima.demo02;

public class Coder extends Person {
    //1. 构造方法, 子类的空参访问父类的空参, 子类的全参访问父类的全参.
    public Coder() {
    }

    public Coder(String name, String id, int salary) {
        super(name, id, salary);
    }

    @Override
    public void work() {
        System.out.println("Coder working!");
    }
}
